<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站配置</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<script type="text/javascript" src="template/images/admin.js"></script>
<script type="text/javascript" src="template/images/dialog-min.js"></script>
<link type="text/css" href="template/images/dialog/dialog.css" rel="stylesheet" />
<?php
	$tech_num = (count($tech_arr)-1);
	$show_tech = $tech_arr[rand(0,$tech_num)];
?>
<script type="text/javascript">
	$(document).ready(function(){
		$str = '<?php echo $show_tech;?>';
		$('#show_tech').html("<em>小提示：</em>"+$str).fadeIn('slow');
	});
</script>
</head>

<body>
<div class="admin_position"><span>当前位置 > 网站配置</span><p id="show_tech" style="display:none"></p></div><!--位置-->
		<div class="lang">
			<ul>
			 <?php
 $cache_file=DATA_PATH."cache/lang_cache.php";
 $cache_arr=read_cache($cache_file,'lang_cache');
 if(!empty($cache_arr)){
 foreach($cache_arr as $k=>$v){
  if(!$v['lang_is_use']){continue;}
 ?>
 <li><a href="?lang=<?php echo $v['lang_tag'];?>" class="<?php if($GLOBALS['lang']==$v['lang_tag']){echo 'hover';}?>"><?php echo $v['lang_name'];?></a></li>
 <?php
 }
 }
 ?>
			</ul>
		</div><!--语言-->
		
		<!--开始表单-->
		<div class="order_contain">
		<form name="maininfo" method="post" enctype="multipart/form-data" class="form">
		<div class="order_main">
	<table cellpadding="0" cellspacing="0" width="100%" class="table_info1">
		<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3 r">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1">网站名称:</td><td class="w2"><input type="text" name="web_name" style="width:80%" value="<?php echo isset($_confing['web_name'])?$_confing['web_name']:'';?>"/></td><td class="w3">$web_name</td>
		</tr>
		<tr>
		  <td class="w1"><span title="一般不用修改" class="help">网站网址:</span></td><td class="w2"><input type="text" name="web_url" style="width:80%" value="<?php echo $web_url=isset($_confing['web_url'])&&!empty($_confing['web_url'])?$_confing['web_url']:CMS_URL;?>"/></td><td class="w3">$web_url</td>
		</tr>
		<tr>
		  <td class="w1"><span title="一般不用修改" class="help">网站路径:</span></td><td class="w2"><input type="text" name="web_path" style="width:80%" value="<?php echo $web_path=isset($_confing['web_path'])&&!empty($_confing['web_path'])?$_confing['web_path']:CMS_SELF;?>"/></td><td class="w3">$web_path</td>
		</tr>
		<tr>
		  <td class="w1">是否生成html:</td><td class="w2"><label for="yes"><input id="yes" style="border:0; margin-top:3px;" type="radio" value="1" name="web_html[]" <?php $web_html=isset($_confing['web_html'])?$_confing['web_html']:0; if ($web_html==1){?>checked="checked"<?php }?>/>是</label><label for="no"><input id="no" type="radio" value="0" style="border:0; margin-top:3px;" name="web_html[]" <?php if ($web_html==0){?>checked="checked"<?php }?>/>否</label></td><td class="w3">$web_html</td>
		</tr>
		<tr>
		  <td class="w1">开启缓存:</td><td class="w2"><label for="yes2"><input id="yes2" type="radio" style="border:0; margin-top:3px;" name="is_cache[]" <?php if($_confing['is_cache'][0]){?>checked="checked"<?php }?> value="1"/>是</label><label for="no2"><input id="no2" style="border:0; margin-top:3px;" type="radio" name="is_cache[]" <?php if(!$_confing['is_cache'][0]){?>checked="checked"<?php }?> value="0" />否</label></td><td class="w3">只能动态页面使用,建议开启</td>
		</tr>
		<tr>
		  <td class="w1">默认缓存时间:</td><td class="w2"><input type="text" name="cache_time" style="width:100px" value="<?php if($_confing['cache_time']){echo $_confing['cache_time'];}else{echo '30';}?>" />秒</td><td class="w3">只能动态页面使用,开启缓存使用</td>
		</tr>
		<tr>
		  <td class="w1"><span title="更换模板会清空现有模板配置" class="help">模板默认风格:</span></td><td class="w2"><p style="float:left; width:30%; margin-top:50px;">template/<input type="text" id="tpl" name="web_template" style="width:100px;" value="<?php echo isset($_confing['web_template'])&&!empty($_confing['web_template'])?$_confing['web_template']:'default';?>"/></p>
		   <p style="margin-top:55px;" class="admin_up_pic"><a href="#" class="sl_tpl">选择模板</a></p><span id="show_tpl" class="admin_show_pic"><a href="<?php echo isset($_confing['web_template'])&&!empty($_confing['web_template'])?'../template/'.$_confing['web_template'].'/thumb.gif':'../upload/no_pc.gif';?>" target="_blank"><img src="<?php echo isset($_confing['web_template'])&&!empty($_confing['web_template'])?'../template/'.$_confing['web_template'].'/thumb.gif':'../upload/no_pc.gif';?>"  height="120" width="120"/></a></span>
		  </td><td class="w3">$web_template</td>
		</tr>
		<tr>
		  <td class="w1">地址(邮编):</td><td class="w2"><input type="text" name="web_address" style="width:80%" value="<?php echo isset($_confing['web_address'])?$_confing['web_address']:'';?>"/></td><td class="w3">$web_address</td>
		</tr>
		<tr>
		  <td class="w1">电话:</td><td class="w2"><input type="text" name="web_phone" style="width:80%" value="<?php echo isset($_confing['web_phone'])?$_confing['web_phone']:'';?>"/></td><td class="w3">$web_phone</td>
		</tr>
		<tr>
		  <td class="w1">企业邮箱:</td><td class="w2"><input type="text" name="web_mail" style="width:80%" value="<?php echo isset($_confing['web_mail'])?$_confing['web_mail']:'';?>"/></td><td class="w3">$web_mail</td>
		</tr>
		<tr>
		  <td class="w1"><span title="支持html代码" class="help">网站页脚信息\网站统计:</span></td><td class="w2"><textarea name="web_powerby" style="width:95%; height:50px;"><?php echo isset($_confing['web_powerby'])?$_confing['web_powerby']:'';?></textarea></td><td class="w3">$web_powerby</td>
		</tr>
		<tr>
		  <td class="w1">默认关键字(SEO):</td><td class="w2"><input type="text" name="web_keywords" style="width:80%" value="<?php echo isset($_confing['web_keywords'])?$_confing['web_keywords']:'';?>"/></td><td class="w3">$web_keywords</td>
		</tr>
		<tr>
		  <td class="w1">站点描述(SEO):</td><td class="w2"><textarea name="web_description" style="width:95%; height:50px;"><?php echo isset($_confing['web_description'])?$_confing['web_description']:'';?></textarea></td><td class="w3">$web_description</td>
		</tr>
		<tr>
		  <td class="w1"><span title="支持html代码" class="help">网站备案号:</span></td><td class="w2"><input type="text" name="web_beian" style="width:80%" value="<?php echo isset($_confing['web_beian'])?$_confing['web_beian']:'';?>"/></td><td class="w3">$web_beian</td>
		</tr>
		<tr>
		  <td class="w1"><span title="支持html代码" class="help">营销客服代码(如53KF代码):</span></td><td class="w2"><textarea name="web_yinxiao" style="width:95%; height:50px;"><?php echo isset($_confing['web_yinxiao'])?$_confing['web_yinxiao']:'';?></textarea></td><td class="w3">$web_yinxiao</td>
		</tr>
		<tr>
		  <td class="w1">热门搜索(用|分开):</td><td class="w2"><input type="text" style="width:95%;" value="<?php echo $_confing['hot_key'];?>" name="hot_key" /></td><td class="w3"></td>
		</tr>
	</tbody>
	 </table>
		</div>
		<div class="order_btn">
			<input type="hidden" name="action" value="add_inc"/><input type="hidden" name="lang" value="<?php echo $lang;?>"/>
  			<input type="submit" value="确定" name="submit" class="go"/><input type="reset" style="margin:0 10px;" class="go" value="重置" name="reset"/>
 		</div>
		<div style="font-size:12px; color:#CCCCCC; padding:5px 0; text-align:center">powerd by <a href="http://fsai.cn" style="color:#CCCCCC" target="_blank">FOXSCMS</a></div>
		<div class="ie8-height"></div>
		</form>
		</div>
		<!--结束表单-->
				<script type="text/javascript">
$('.sl_tpl').wBox({title:'选择模板',requestType: "iframe",target:"admin_sl_tpl.php?get=tpl",iframeWH:{width:800,height:400}});
</script>
</body>
</html>